package se.vgregion.velocity.hook.rss.tool;

import java.util.ArrayList;
import java.util.List;

import se.vgregion.velocity.hook.rss.util.RSSToolUtil;
import com.sun.syndication.feed.synd.SyndEntry;


public class RSSToolImpl implements RSSTool {

    public RSSToolImpl() {

    }

    @Override
	public String getTest() {
		return "foo";
	}
	
	public List<SyndEntry> getEmptyFeedList() {
		
		return new ArrayList<SyndEntry>();
	}
	
	@Override
	public List<SyndEntry> readFeed(String urlStr) {
		return RSSToolUtil.readFeed(urlStr);
	}
	
	@Override
	public List<SyndEntry> readFeed(String urlStr, int maxEntriesCount) {
		return RSSToolUtil.readFeed(urlStr, maxEntriesCount);
	}
	
}
